package sistemioperativi.matrice.es5;
import java.util.concurrent.atomic.*;

public class ColonnaTS extends Thread {

	private AtomicInteger matrix[][];
	private int colonna;
	
	public ColonnaTS (AtomicInteger matrix[][], int colonna){
		this.matrix = matrix;
		this.colonna = colonna;
	}
	
	public void run(){
		
		for(int i = 0; i<matrix.length; i++){
			matrix[i][colonna].addAndGet(1);
		}
	}
}
